#ifndef XTCPFORM_H
#define XTCPFORM_H

#include <QWidget>
class MainForm;
class TableView;
class QSettings;

namespace Ui {
class xtcpForm;
}

class xtcpForm : public QWidget
{
    Q_OBJECT

public:
    Ui::xtcpForm *ui;
    explicit xtcpForm(QWidget *parent = nullptr);
    ~xtcpForm();
    MainForm *mainw;

    TableView *xtcpTable = nullptr;
    void saveData();

private slots:
    void on_addPushButton_clicked();

    void on_delePushButton_clicked();

    void on_startButton_clicked();

    void on_ResetButton_clicked();

private:

    QSettings *settings    = nullptr;
    void tableInit();
    void recData();

};

#endif // XTCPFORM_H
